#  ======================================================================================
#  File         : msvc_config.mk
#  Author       : Wu Jie 
#  Last Change  : 10/19/2008 | 11:41:03 AM | Sunday,October
#  Description  : 
#  ======================================================================================

# /////////////////////////////////////////////////////////////////////////////
#  System Auto Dectect
# /////////////////////////////////////////////////////////////////////////////

#  ------------------------------------------------------------------ 
#  current os
#  ------------------------------------------------------------------ 

CURRENT_OS := Win32

# /////////////////////////////////////////////////////////////////////////////
#  User Define
# /////////////////////////////////////////////////////////////////////////////

#  ------------------------------------------------------------------ 
#  Desc: Configuration Name
#  parameter: Debug
# 			  Release
# 			  Final
# 			  All
#  ------------------------------------------------------------------ 

Configuration = Debug

#  ------------------------------------------------------------------ 
#  Desc: Platform Name
#  parameter: Linux
# 			  Win32
# 			  Xenon
# 			  PS3
# 			  All
#  ------------------------------------------------------------------ 

Platform = Win32

#  ------------------------------------------------------------------ 
#  Desc: Compiler
#  parameter: msvc2003
# 			  msvc2005
# 			  msvc2008
#  ------------------------------------------------------------------ 

Compiler = msvc2005

# /////////////////////////////////////////////////////////////////////////////
# Advance User Define
# /////////////////////////////////////////////////////////////////////////////

#  ------------------------------------------------------------------ 
#  Desc: Make Debug
#  ------------------------------------------------------------------ 

SILENT_CMD := @

#  ------------------------------------------------------------------ 
#  Desc: Make Silent
#  ------------------------------------------------------------------ 

ifeq ($(SILENT_CMD),@)
SILENT_MK := --silent
else
SILENT_MK :=
endif

#  ------------------------------------------------------------------ 
#  Desc: General Commands
#  ------------------------------------------------------------------ 

ECHO := $(SILENT_CMD)echo
SMAKE := $(SILENT_CMD)$(MAKE) $(SILENT_MK)

#  ------------------------------------------------------------------ 
#  Desc: Command Path Choose
#  ------------------------------------------------------------------ 

CMD_PATH_WINDOWS := $(EX_DEV)/tools/msys/1.0/bin/
VC_PATH_WINDOWS := d:/Program Files/Microsoft Visual Studio 8/Common7/IDE/

#  ------------------------------------------------------------------ 
#  Desc: System Commands
#  ------------------------------------------------------------------ 

RM := $(SILENT_CMD)$(CMD_PATH_WINDOWS)rm -f
RMDIR := $(SILENT_CMD)$(CMD_PATH_WINDOWS)rmdir
MKDIR := $(SILENT_CMD)$(CMD_PATH_WINDOWS)mkdir -p
CAT := $(SILENT_CMD)$(CMD_PATH_WINDOWS)cat
CLS := $(SILENT_CMD)cls # this is the dos command, temp exist here
COPY := $(SILENT_CMD)copy

#  ------------------------------------------------------------------ 
#  Desc: VC Commands
#  ------------------------------------------------------------------ 

DEVENV := $(SILENT_CMD)"$(VC_PATH_WINDOWS)devenv"

# /////////////////////////////////////////////////////////////////////////////
# Post Build Even for all project
# /////////////////////////////////////////////////////////////////////////////

define POST_BUILD_ALL_PROJECT
$(ECHO) Post Build...
endef
